package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Paper1Mapper;
import com.ruoyi.system.domain.Paper1;
import com.ruoyi.system.service.IPaper1Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 论文管理1Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-09
 */
@Service
public class Paper1ServiceImpl implements IPaper1Service 
{
    @Autowired
    private Paper1Mapper paper1Mapper;

    /**
     * 查询论文管理1
     * 
     * @param id 论文管理1主键
     * @return 论文管理1
     */
    @Override
    public Paper1 selectPaper1ById(Long id)
    {
        return paper1Mapper.selectPaper1ById(id);
    }

    /**
     * 查询论文管理1列表
     * 
     * @param paper1 论文管理1
     * @return 论文管理1
     */
    @Override
    public List<Paper1> selectPaper1List(Paper1 paper1)
    {
        return paper1Mapper.selectPaper1List(paper1);
    }

    /**
     * 新增论文管理1
     * 
     * @param paper1 论文管理1
     * @return 结果
     */
    @Override
    public int insertPaper1(Paper1 paper1)
    {
        return paper1Mapper.insertPaper1(paper1);
    }

    /**
     * 修改论文管理1
     * 
     * @param paper1 论文管理1
     * @return 结果
     */
    @Override
    public int updatePaper1(Paper1 paper1)
    {
        return paper1Mapper.updatePaper1(paper1);
    }

    /**
     * 批量删除论文管理1
     * 
     * @param ids 需要删除的论文管理1主键
     * @return 结果
     */
    @Override
    public int deletePaper1ByIds(String ids)
    {
        return paper1Mapper.deletePaper1ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除论文管理1信息
     * 
     * @param id 论文管理1主键
     * @return 结果
     */
    @Override
    public int deletePaper1ById(Long id)
    {
        return paper1Mapper.deletePaper1ById(id);
    }
}
